package pe.tp2.dao.service;

import java.util.ArrayList;

import pe.tp2.beans.DetalleEmbarque;
import pe.tp2.beans.DetalleParametro;
import pe.tp2.beans.Embarque;
import pe.tp2.beans.Tender;
import pe.tp2.dao.config.DAOFactory;
import pe.tp2.dao.implementacion.ITenderDAO;

public class TenderDAOServiceImpl implements TenderDAOService{

	ITenderDAO objITenderDAO;
	
	public TenderDAOServiceImpl(){
		this.objITenderDAO = DAOFactory.getInstance().getTenderDAO();
	}
	
	@Override
	public ArrayList<Embarque> buscarEmbarques(Embarque objEmbarque)
			throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.buscarEmbarques(objEmbarque);
	}

	@Override
	public ArrayList<Tender> buscarTender(Tender objTender)
			throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.buscarTender(objTender);
	}

	@Override
	public ArrayList<DetalleEmbarque> buscarDetalleEmbarque(Embarque objEmbarque)
			throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.buscarDetalleEmbarque(objEmbarque);
	}

	@Override
	public ArrayList<DetalleParametro> buscarDetalleParametro(int idDetalle)
			throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.buscarDetalleParametro(idDetalle);
	}

	@Override
	public boolean actualizarEmbarque(Embarque objEmbarque) throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.actualizarEmbarque(objEmbarque);
	}

	@Override
	public boolean registraTender(Tender objTender) throws Exception {
		// TODO Auto-generated method stub
		return objITenderDAO.registraTender(objTender);
	}

}
